﻿using OA.Models.Enums;
using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace OA.Models
{
    /// <summary>
    ///  申请单代理
    ///  申请单创建之后由此类跟踪
    /// </summary>
    public class ApplicationAgent
    {
        [Key]
        [DisplayName("表单编号")]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public string ApplicationId { get; set; }
        [Required]
        [DisplayName("表单类型")]
        public string ApplicationType { get; set; }
        [Required]
        [DisplayName("最后修改时间")]
        [DisplayFormat(DataFormatString = "{0: yyyy年MM月dd日 HH:mm:ss}")]
        public DateTime ModificationDate { get; set; }
        [Required]
        [DisplayName("状态")]
        public ApplicationFormState Status { get; set; }
        
        [Required]
        [DisplayName("提交人工号")]
        public string CreatorId { get; set; }
        [DisplayName("提交人")]
        public string Creator { get; set; }
    }
}
